package com.guli.gulimall.gulimallware.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.guli.common.utils.PageUtils;
import com.guli.gulimall.gulimallware.entity.WareSkuEntity;
import com.guli.to.SkuHasStockVo;

import java.util.List;
import java.util.Map;

/**
 * 商品库存
 *
 * @author zouzhi
 * @email 1245268075@qq.com
 * @date 2022-04-03 15:08:10
 */
public interface WareSkuService extends IService<WareSkuEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void addStock(Long skuId, Long wareId, Integer skuNum);

    List<SkuHasStockVo> hashStock(List<Long> sku_ids);
}

